package lab02.test12;

/**
 * Created by 婷婷 on 2017/10/20.
 */
    //Circle子类继承Shape父类
public class Circle extends Shape {

    //属性

    double radius;

    //重写父类Shape的area()，perimeter()方法
    @Override
    double area() {
        return Math.PI*radius*radius;
    }

    @Override
    double perimeter() {
        return Math.PI*radius*2;
    }
}
